<template>
  <div class="app">
    <!-- v-model原理：value属性+@input事件 -->
  <!-- <BaseSelect :value="selectId" @input="onchange"/> -->

<!-- 化简后 -->
 <BaseSelect v-model="selectId"/>

  <p>{{ selectId }}</p>
  </div>
</template>

<script>
import BaseSelect from './components/BaseSelect.vue'
export default {
  
  components: {
    BaseSelect,
  },

data(){
  return {
    selectId: '102'
  }
},
methods: {
  onchange(value){
    this.selectId = value
  }
}


}
</script>

<style>
</style>